websiteComponents.loader.define("website.components.button.visitor",[],()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,r){return(t=function(e){var t=function(e){if("object"!=n(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}e.r(t),e.d(t,{Visitor:()=>L,default:()=>T});let o=!1,i=!1,s=!1,a=!1;"undefined"!=typeof window&&"CSS"in window&&"function"==typeof CSS.supports&&(o="Animation"in window,"ViewTimeline"in window&&CSS.supports("animation-range","entry 0% exit 100%"),s="registerProperty"in CSS,CSS.supports("animation-timing-function","linear(0, 0.25 75%, 1)"));const c=o&&s,u=()=>window.__sqsAnimationRuntime;function l(e){return"__proto__"===e}function f(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t,n){const r=Object.keys(t);for(let o=0;oObject.prototype.propertyIsEnumerable.call(e,t))}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const y="[object String]",h="[object Number]",g="[object Boolean]",m="[object Arguments]",v="[object Object]";function j(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function w(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function O(e,t,n,r=new Map,o=void 0){const i=o?.(e,t,n,r);if(void 0!==i)return i;if(j(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){const t=new Array(e.length);r.set(e,t);for(let i=0;i{const s=t?.(n,r,o,i);if(void 0!==s)return s;if("object"==typeof e){if(b(e)===v&&"function"!=typeof e.constructor){const t={};return i.set(e,t),A(t,e,o,i),t}switch(Object.prototype.toString.call(e)){case h:case y:case g:{const t=new e.constructor(e?.valueOf());return A(t,e),t}case m:{const t={};return A(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}(e)}function S(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===b(e)}function B(e){return"object"==typeof e&&null!==e}function D(e){return B(e)&&function(e){return null!=e&&"function"!=typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}(e)}function V(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function P(e){return w(e)}function x(e,t,n,r){if(j(e)&&(e=Object(e)),null==t||"object"!=typeof t)return e;if(r.has(t))return function(e){if(j(e))return e;if(Array.isArray(e)||w(e)||e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(null==t)return Object.assign(Object.create(t),e);const n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){const t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}if("undefined"!=typeof File&&e instanceof File)return new n([e],e.name,{type:e.type,lastModified:e.lastModified});if("object"==typeof e){const n=Object.create(t);return Object.assign(n,e)}return e}(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e(e.maxWidth?parseInt(e.maxWidth):1/0)-(t.maxWidth?parseInt(t.maxWidth):1/0)),n=document.documentElement.clientWidth;return t.find(e=>{if((null!=e&&e.maxWidth?parseInt(e.maxWidth):Number.MAX_SAFE_INTEGER)>n)return e})??e[0]??null}function R(e,t,n){if(!t||null==e||!e.breakpointOverrides)return e;const r=e.breakpointOverrides[t.id];return r?n?d(O(o=e,void 0,o,new Map,void 0),r,(e,t,r,o,i)=>n({baseValue:e,overrideValue:t,key:r,base:o,override:i})):function(e,...t){return function(e,...t){const n=t.slice(0,-1),r=t[t.length-1];let o=e;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1];if(r(this,"componentId",""),r(this,"processedValue",null),r(this,"previousBreakpoint",null),r(this,"resizeListener",null),r(this,"handlePrefersReducedMotionChange",e=>{e?(this.destroyAnimations(),this.detachResizeListener()):(this.parseBlockData(),this.attachResizeListener(),this.createAnimations())}),this.root=e,this.root=e,!c)return void this.removePrerender();this.componentId=(null===(t=this.root.closest("[data-website-component-id]"))||void 0===t?void 0:t.dataset.websiteComponentId)??"";const a=null===(n=this.root.parentElement)||void 0===n?void 0:n.classList.contains("pseudo-engine__block");s||a||(this.prefersReducedMotionUnsub=null===(o=u())||void 0===o||null===(i=o.registerReducedMotionChangeHandler)||void 0===i?void 0:i.call(o,this.handlePrefersReducedMotionChange),window.matchMedia("(prefers-reduced-motion: reduce)").matches||this.attachResizeListener())}processBreakpointOverrideValue(){this.websiteBreakpoints||this.parseBlockData();const e=this.websiteBreakpoints;if(!e)return;const t=M(e);this.processedValue=R(this.blockData,t)}removePrerender(){var e;null===(e=this.root.querySelector("style[data-block-animations-prerender]"))||void 0===e||e.remove()}parseBlockData(){const e=this.root.querySelector(`script[data-block-animations="${this.componentId||""}"]`);if(!e)return this.blockData={animations:[],transforms:{},componentId:this.componentId},void(this.websiteBreakpoints=void 0);const t=JSON.parse(String(e.textContent)),{websitesBreakpoints:n,...r}=t;this.websiteBreakpoints=n,this.blockData=r,this.processBreakpointOverrideValue()}attachResizeListener(){if(this.resizeListener)return;this.blockData||this.parseBlockData();const e=this.websiteBreakpoints;var t;e&&(null!==(t=this.previousBreakpoint)&&void 0!==t&&t.id||(this.previousBreakpoint=M(e)),this.resizeListener=()=>{var t;const n=M(e);if((null===(t=this.previousBreakpoint)||void 0===t?void 0:t.id)!==(null==n?void 0:n.id)){if(this.previousBreakpoint=n,this.processBreakpointOverrideValue(),!this.root.isConnected)return;this.destroyAnimationTriggers(),this.createAnimations()}},window.addEventListener("resize",this.resizeListener))}detachResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null,this.previousBreakpoint=null)}createAnimations(){var e,t;c&&this.blockData&&(this.processBreakpointOverrideValue(),this.processedValue?null===(e=u())||void 0===e||e.createAnimationTriggers(this.processedValue):null===(t=u())||void 0===t||t.createAnimationTriggers(this.blockData))}destroyAnimationTriggers(){const e=u();this.processedValue?null==e||e.destroyAnimationTriggers(this.processedValue):null==e||e.destroyAnimationTriggers(this.blockData)}destroyAnimations(){var e;null===(e=this.prefersReducedMotionUnsub)||void 0===e||e.call(this),this.blockData&&this.destroyAnimationTriggers()}updateBlockData(e,t){e&&(this.blockData||this.parseBlockData(),this.blockData={...this.blockData||{},...e},this.websiteBreakpoints=t,this.processBreakpointOverrideValue())}getBlockData(){return this.blockData||this.parseBlockData(),this.processBreakpointOverrideValue(),this.processedValue?this.processedValue:this.blockData}}class L{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.root=e,this.root=e,this.animationVisitor=new E(e,t)}}const T=function(e){return new L(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])};return t})());